package xyz.xiezc.xsync.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (XFileInfo)实体类
 *
 * @author xiezc
 * @since 2020-10-10 18:01:45
 */
@Setter
@Getter
@TableName("x_file_info")
public class FileInfoDO implements Serializable {
    private static final long serialVersionUID = 720931554188314239L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 切分的块的数量
     */
    private Integer count;
    /**
     * 文件的大小
     */
    private Long size;
    /**
     * 文件的名称
     */
    private String path;
    /**
     * 文件所属的用户
     */
    private Integer userId;

    private LocalDateTime dateCreate;

    private LocalDateTime dateUpdate;

    private LocalDateTime dateDelete;
    /**
     * 0: 未上传
     * 1：上传中
     * 2：上传结束
     */
    private Integer status;
    /**
     * 文件的最后修改时间
     */
    private LocalDateTime lastModify;


}